﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TankWar
{
    abstract class GameObject
    {
        public int x { set; get; }
        public int y { set; get; }

        public void DrawSelf()
        { 
            Graphics g = GameFramework.g;

            g.DrawImage(GetImage(),x,y);     // 把自己画出来
            
        }

        protected abstract Image GetImage();



    }
}
